package com.dai.designpattern.prototype.practice.factory;

import com.dai.designpattern.prototype.practice.AbstractScene;
import com.dai.designpattern.prototype.practice.constant.SceneNameCode;
import com.dai.designpattern.prototype.practice.mold.AreaCodeReverseQueryScene;
import com.dai.designpattern.prototype.practice.mold.MoveCarScene;
import com.dai.designpattern.prototype.practice.mold.NumberReverseQueryScene;

/**
 * 场景工厂类
 * @author daijiyong
 */
public class SceneFactory {

    public static AbstractScene createNumberReverseQueryScene() {
        return new NumberReverseQueryScene(SceneNameCode.NumberReverseQuery);
    }
    public static AbstractScene createAreaCodeReverseQueryScene() {
        return new AreaCodeReverseQueryScene(SceneNameCode.AreaCodeReverseQuery);
    }

    public static AbstractScene createMoveCarScene() {
        return new MoveCarScene(SceneNameCode.MOVECAR);
    }
}
